<template>
    <div>
        <div id="header">
            <div class="one">
                <p class="fa fa-angle-left" @touchstart="back"></p>
            </div>
            <slot></slot>        
        </div>
    </div>
</template>

<script>
export default{
    methods: {
        back:function(){
            history.back();
        }
    }
}
</script>

<style scoped>
#header{
    width: 100vw;
    height: 37px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #dcdcdc;
    position: fixed;
    top: 0;
    display: flex;
}
p{
    margin: 0;
    padding-left: 15px;
    font-size: 26px;
    line-height: 37px;
    color: #333;
}
.one{
    width: 20vw;
    height: 37px;
    /*border: solid 1px black;*/
}
.two{

    /*margin-right: 9px;*/
    width: 60vw;
    height: 37px;
    /*border: solid 1px black;*/
}

</style>